﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="UserList" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>招聘用户信息</title>
    <script src="../js/extTools.js" type="text/javascript"></script>
    <style>
        .x-grid-row-over .x-grid-cell-inner
        {
            font-weight: bold;
        }
        .x-column-header-inner
        {
            height: 28px;
            background: #E7EBEF url(./images/header.png) repeat-x 0 0;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Crisp" />
        <ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout">
            <Items>
                <ext:Hidden ID="FormatType" runat="server" />
                <ext:GridPanel ID="GridPanel1" runat="server" TitleAlign="Center">
                    <TopBar>
                        <ext:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <ext:DateField runat="server" ID="txtbdate" FieldLabel="开始日期" />
                                <ext:DateField runat="server" ID="txtedate" FieldLabel="结束日期" />
                                <ext:TextField runat="server" id="txtparam" EmptyText="输入姓名/电话搜索" />
                                <ext:Button ID="Button1" runat="server" Text="查询" OnDirectClick="BtnQureyUser" UI="Info">
                                    <DirectEvents>
                                        <Click Timeout="90000">
                                            <EventMask ShowMask="true" Msg="加载中...">
                                            </EventMask>
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </TopBar>
                    <Store>
                        <ext:Store ID="Store1" runat="server" PageSize="1000" OnReadData="RefreshDataSet"
                            OnSubmitData="Store1_Submit">
                            <Model>
                                <ext:Model ID="Model1" runat="server">
                                    <Fields>
                                        <ext:ModelField Name="UserName" Mapping="姓名" />
                                        <ext:ModelField Name="sexname" Mapping="性别" />
                                        <ext:ModelField Name="JobType" Mapping="岗位" />
                                        <ext:ModelField Name="Bdate" Mapping="出生年月" />
                                        <ext:ModelField Name="Salary" Mapping="薪资" />
                                        <ext:ModelField Name="Mobile" Mapping="手机" />
                                        <ext:ModelField Name="Email" Mapping="邮箱" />
                                        <ext:ModelField Name="WorkType" Mapping="类型" />
                                        <ext:ModelField Name="City" Mapping="城市" />
                                        <ext:ModelField Name="Province" Mapping="省份" />
                                        <ext:ModelField Name="Area" Mapping="地区" />
                                        <ext:ModelField Name="Address" Mapping="地址" />
                                        <ext:ModelField Name="Cdate" Mapping="申请时间" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel>
                        <Items>
                        <ext:RowNumbererColumn runat="server" Header="序号"/>
                            <ext:Column ID="Column1" runat="server" Text="姓名" DataIndex="UserName" Width="120" />
                            <ext:Column ID="Column2" runat="server" Text="性别" DataIndex="sexname" Width="60" />
                            <ext:Column ID="Column3" runat="server" Text="岗位" DataIndex="JobType" Width="60" />
                            <ext:Column ID="Column7" runat="server" Text="出生年月" DataIndex="Bdate" Width="100" />
                            <ext:Column ID="Column9" runat="server" Text="薪资" DataIndex="Salary" Width="100" />
                            <ext:Column ID="Column10" runat="server" Text="手机" DataIndex="Mobile" Width="100" />
                            <ext:Column ID="Column11" runat="server" Text="邮箱" DataIndex="Email" Width="150" />
                            <ext:Column ID="Column12" runat="server" Text="类型" DataIndex="WorkType" Width="60" />
                            <ext:Column ID="Column4" runat="server" Text="城市" DataIndex="City" Width="80" />
                            <ext:Column ID="Column5" runat="server" Text="省份" DataIndex="Province" Width="80" />
                            <ext:Column ID="Column6" runat="server" Text="地区" DataIndex="Area" Width="80" />
                            <ext:Column ID="Column13" runat="server" Text="详细地址" DataIndex="Address" Width="150" />
                            <ext:Column ID="Column8" runat="server" Text="申请时间" DataIndex="Cdate" Width="180" />
                        </Items>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" />
                    </SelectionModel>
                    <BottomBar>
                        <ext:PagingToolbar ID="PagingToolbar1" runat="server">
                            <Items>
                                <ext:Label ID="Label1" runat="server" Text="每页显示:" />
                                <ext:ToolbarSpacer ID="ToolbarSpacer1" runat="server" Width="10" />
                                <ext:ComboBox ID="ComboBox1" runat="server" Width="80">
                                    <Items>
                                        <ext:ListItem Text="1000" />
                                        <ext:ListItem Text="2000" />
                                    </Items>
                                    <SelectedItems>
                                        <ext:ListItem Value="1000" />
                                    </SelectedItems>
                                    <Listeners>
                                        <Select Handler="#{GridPanel1}.store.pageSize = parseInt(this.getValue(), 10); #{GridPanel1}.store.reload();" />
                                    </Listeners>
                                </ext:ComboBox>
                                <ext:Button ID="Button2" runat="server" Text="导出Excel" Icon="PageExcel">
                                    <Listeners>
                                        <Click Handler="exportData('xls');" />
                                    </Listeners>
                                </ext:Button>
                            </Items>
                            <Plugins>
                                <ext:ProgressBarPager ID="ProgressBarPager1" runat="server" />
                            </Plugins>
                        </ext:PagingToolbar>
                    </BottomBar>
                </ext:GridPanel>
            </Items>
        </ext:Viewport>
    </div>
    </form>
</body>
</html>
